from django.db import models

# Create your models here.
from django.contrib.auth.models import AbstractUser



class User(AbstractUser):
    # 原有的用户没有手机号字段unique指定唯一值
    mobile = models.CharField(max_length=11,unique=True)

    class Meta:
        db_table = 'tb_user'

    def __str__(self):
        return self.username
